/*
 * @Author: lokei
 * @Date: 2022-08-28 22:46:40
 * @LastEditors: lokei
 * @LastEditTime: 2022-08-30 08:46:07
 * @Description: 
 */
package cn.lokei.gateway.entity;

import java.util.HashSet;
import java.util.Set;

import io.netty.channel.ChannelId;
import lombok.Data;

@Data
public class IotChannel {
	private boolean is_connected;
	private boolean is_registered;
	private String client_id;
	private String username;
	private byte[] password;
	private ChannelId channel_id;

	private Set<String> subTopics;

	public IotChannel() {
		this.subTopics = new HashSet<String>();
	}

	public IotChannel(ChannelId channel_id) {
		this.subTopics = new HashSet<String>();
		this.channel_id = channel_id;
	}
}
